from fastapi import APIRouter

router = APIRouter()

@router.get("/users",tags=["users"])
async def read_users():
    results = {
        "users":[
            {"username": "tom"},
            {"username": "jerry"},
            {"username": "lucy"},
            {"username": "lily"},
        ]
    }
    return results

@router.get("/users/current",tags=["users"])
async def read_current_user():
    results = {
        "username": "tom"
    }
    return results

@router.get("/users/{username}", tags=["users"])
async def read_user(username: str):
    results = {
        "username": username
    }
    return results